package org.shuma.goods.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
//import com.github.pagehelper.Page;
import org.shuma.goods.domain.entity.ProductBasicInfo;
import org.springframework.data.domain.PageRequest;

import java.util.List;


/**
 * (ProductBasicInfo)表服务接口
 *
 * @author makejava
 * @since 2024-06-18 13:49:59
 */
public interface ProductBasicInfoService extends IService<ProductBasicInfo> {

    ProductBasicInfo getProductBasicInfo(Integer productId);
    Page<ProductBasicInfo> getProductBasicInfoList(Long userId, Integer pageNum, Integer pageSize);
    Page<ProductBasicInfo> getProductStatus(Integer productId,Integer pageNum, Integer pageSize);
    /**
     * 通过ID查询单条数据
     *
     * @param productId 主键
     * @return 实例对象
     */
    ProductBasicInfo queryById(Long productId);

    /**
     * 分页查询
     *
     * @param productBasicInfo 筛选条件
     * @param pageRequest      分页对象
     * @return 查询结果
     */
    org.springframework.data.domain.Page<ProductBasicInfo> queryByPage(ProductBasicInfo productBasicInfo, PageRequest pageRequest);

    /**
     * 新增数据
     *
     * @param productBasicInfo 实例对象
     * @return 实例对象
     */
    ProductBasicInfo insert(ProductBasicInfo productBasicInfo);

    /**
     * 修改数据
     *
     * @param productBasicInfo 实例对象
     * @return 实例对象
     */
    ProductBasicInfo update(ProductBasicInfo productBasicInfo);

    /**
     * 通过主键删除数据
     *

     * @return 是否成功
     */
    boolean deleteById(List<Long> idList);

}
